package cn.uniquesoft.service.impl;

import cn.uniquesoft.mapper.CodeMapper;
import cn.uniquesoft.service.ICodeService;
import cn.uniquesoft.service.base.BaseServiceImpl;
import cn.uniquesoft.vo.CodeVO;
import org.springframework.stereotype.Service;

@Service
public class CodeServiceImpl extends BaseServiceImpl<CodeVO> implements ICodeService {
	
	private CodeMapper codeMapper;
	
	public CodeServiceImpl(CodeMapper codeMapper) {
		super();
		this.baseMapper = codeMapper;
		this.codeMapper = codeMapper;
	}
	
	@Override
	public CodeVO findItemByCphone(String cphone) {
		// TODO Auto-generated method stub
		return this.codeMapper.findItemByCphone(cphone);
	}

	@Override
	public int editCodeByCphone(CodeVO item) {
		// TODO Auto-generated method stub
		return this.codeMapper.editCodeByCphone(item);
	}

}
